import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:oktoast/oktoast.dart';

import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_easyrefresh/material_header.dart';
import 'package:flutter_easyrefresh/material_footer.dart';

void showToast(String str) {
  Fluttertoast.showToast(
      msg: str,
      toastLength: Toast.LENGTH_SHORT,
      gravity: ToastGravity.BOTTOM,
      fontSize: 14,
      backgroundColor: Color.fromARGB(200, 0, 0, 0),
      textColor: Colors.white);
}


// RefreshHeader dcpAndroidRefreshHeader(GlobalKey<RefreshHeaderState> _headerKeyList) {
//   return MaterialHeader(

//     key: _headerKeyList,
//     valueColor: new AlwaysStoppedAnimation(Color(0xffff3b00)),
//   );
// }
// RefreshFooter dcpAndroidRefreshFotter(GlobalKey<RefreshFooterState> _footerKeyList, BuildContext context) {
//   return MaterialFooter(

//     key: _footerKeyList,
//     displacement: 120 +  MediaQuery.of(context).padding.bottom,
//     valueColor: new AlwaysStoppedAnimation(Color(0xffff3b00)),
//   );
// }

// RefreshFooter dcpAndroidRefreshFotter(GlobalKey<RefreshFooterState> _footerKeyList) {
//   return ClassicsFooter(
//       key: _footerKeyList,
//       loadHeight: 40.0,
//       loadText: "",
//       loadReadyText: "上划加载更多",
//       loadingText: "加载中",
//       loadedText: "加载完成",
//       noMoreText: "",
//       moreInfo: "",
//       textColor: Colors.black,
//       bgColor: Colors.transparent);

// }


